package com.liu.entity;

import cn.hutool.core.annotation.Alias;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class User {
    @TableId(type = IdType.AUTO)
    @Alias("ID")
    private Integer id;
    @Alias("用户名")
    private String username;
    @Alias("昵称")
    private String nickname;
    // @JsonIgnore  密码会被忽略
    @Alias("密码")
    private String password;
    @Alias("照片")
    private String photo;
    @Alias("年龄")
    private Integer age;
    @Alias("性别")
    private String sex;
    @Alias("电话")
    private String phone;
    @Alias("地址")
    private String address;
    @Alias("邮箱")
    private String email;
    @Alias("创建时间")
    private Date createTime;

    private String token;
}
